package ru.linnenson.darshana.infrastructure.persistence.models;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import ru.linnenson.darshana.application.domain.SubjectEnum;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Data
@Entity
@ToString(callSuper = true)
@Table(name = "subject")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class SubjectStore extends DictionaryStore {

  @Enumerated(value = EnumType.STRING)
  SubjectEnum sysname;
}
